#include<iostream>
#include<math.h>

using namespace std;

double f1(double x)
{
    return sqrt(x)*(sqrt(x+1)-sqrt(x));
}

double f2(double x){
    return sqrt(x)/(sqrt(x+1)+sqrt(x));
}

int main()
{
    double x = 1.0;
    while(x<=1e14){
        printf("At x=%.lf, f1(x)=%.19lf, f2(x)=%.19lf\n", x, f1(x), f2(x));
        x*=10;
    }
    printf("sqrt(x+1)=%.19lf, sqrt(x)=%.19lf\n", sqrt(x+1), sqrt(x));
    printf("diff= %.19lf\n", sqrt(x+1)-sqrt(x));
    printf("sum=%.19lf\n", sqrt(x+1)+sqrt(x));
    return 0;
}